package cn.wsalix.templet.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.anlaser.service.impl.SimpleServiceImpl;
import cn.anlaser.utils.SearchFilter;
import cn.wsalix.templet.entity.Project;
import cn.wsalix.templet.form.ProjectForm;
import cn.wsalix.templet.repository.ProjectRepository;
import cn.wsalix.templet.service.ProjectService;

@Service("projectService")
@Transactional(readOnly = true)
public class ProjectServiceImpl extends
		SimpleServiceImpl<ProjectForm, ProjectRepository, Project> implements
		ProjectService {
	@Autowired
	private ProjectRepository siteInfpRepository;

	@Override
	public String module() {
		return "/templet/project";
	}

	@Override
	public ProjectRepository getRepository() {
		return siteInfpRepository;
	}

	@Override
	public Class<Project> getEntityClazz() {
		// TODO Auto-generated method stub
		return Project.class;
	}

	@Override
	public Map<String, SearchFilter> buildByForm(ProjectForm form) {
		// TODO Auto-generated method stub
		return null;
	}

}
